<h1>Write Board</h1>

	<ul class="whiteboard">
	<%@write_boards.each do |write_board|%>
	<li class="<%= cycle "odd", "even" %>"><%=write_board.title%>
	<br/><%=write_board.content unless write_board.content.nil?%>
	<br/>by : <%=write_board.employee.name unless write_board.employee.nil?%> - <%=write_board.created_at.strftime("%d %B %Y %I:%M %p")%>
	</li>
<%end%>
	</ul>

<% form_for :@write_board, @write_board, 
:url => { :controller => 'myoffice', :action => "create_write_board", :id => @write_board } do  %>
 <p>
  
    Title : <br />
    <%= text_field :write_board, :title %>
  </p> 

  <p>
  
    Message : <br />
    <%= text_area :write_board, :content %>
  </p>
  
  <p>
    <%= submit_tag 'Create' %>
  </p>
<% end %>
	</ul>
